package com.winbomb.simulife.impl.cards;

import com.winbomb.simulife.Ability;
import com.winbomb.simulife.World;
import com.winbomb.simulife.base.CardType;
import com.winbomb.simulife.framework.Pixmap;
import com.winbomb.simulife.impl.BaseCard;
import com.winbomb.simulife.util.ProbUtil;

public class LearningCard extends BaseCard {

	public static final short LEARN_SCIENCE = 1001;
	public static final short LEARN_ART = 1002;

	private short learnType;

	public LearningCard(World world) {
		super(world);

		this.learnType = LEARN_SCIENCE;
	}

	@Override
	public Pixmap getAnimation() {
		return null;
	}

	@Override
	public String getDescription() {
		return "knowledge: +10 ";
	}

	@Override
	public void affect() {
		master.modifyAbility(Ability.KNOWLEDGE, 10);

		if (ProbUtil.test(0.1f)) {
			master.moreSad();
		}
	}

	@Override
	public CardType getCardType() {
		return CardType.LEARN;
	}

	@Override
	public short getCardId() {
		return learnType;
	}

}
